Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation below 7.2.5 #2707

Merged
merged 103 commits into from
Aug 14, 2023
Merged

Conversation

SamRemis
Copy link
Member

@SamRemis SamRemis commented Jun 8, 2023

This pull request is a work in progress and will be added to over time. This will be merged before the release on Tuesday, August 15th, 2023 and will be a minor version bump that ends support for php versions below 7.2.5.

composer.json Outdated
"php": ">=7.2.5",
"guzzlehttp/guzzle": "^7.4.5",
"guzzlehttp/psr7": "^2.4.5",
"guzzlehttp/promises": "^2.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need to drop 1.x here. we can have ^1.5.3 || ^2.0.

composer.json Outdated
"guzzlehttp/promises": "^1.4.0",
"php": ">=7.2.5",
"guzzlehttp/guzzle": "^7.4.5",
"guzzlehttp/psr7": "^2.4.5",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need to drop 1.x here. we can have ^1.9.1 || ^2.4.5. having extra return types in your implementations is still compatible with v1.

@@ -79,7 +79,7 @@ public function __construct(
*
* @return Coroutine
*/
public function promise()
public function promise(): \GuzzleHttp\Promise\PromiseInterface
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a use statement and shorten the return type?

src/Waiter.php Outdated
@@ -89,7 +89,7 @@ public function __construct(
/**
* @return Coroutine
*/
public function promise()
public function promise(): \GuzzleHttp\Promise\PromiseInterface
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here- could we shorten this return type?

@stobrien89 stobrien89 merged commit 84d4539 into aws:master Aug 14, 2023
14 checks passed
@@ -32,8 +32,8 @@
$autoloaderContents = [
'Aws/functions.php',
'GuzzleHttp/functions_include.php',
'GuzzleHttp/Psr7/functions_include.php',
'GuzzleHttp/Promise/functions_include.php',
'GuzzleHttp/Psr7/Utils.php',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not necessary to include these two utils files.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GrahamCampbell,

Happy to revert this if you wanted to give the PR another once-over.

Copy link
Contributor

@GrahamCampbell GrahamCampbell Aug 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a bug, just unnecessary to include these classes explicitly, since they already get autoloaded like the others. The original code was only necessary to include functions - functions cannot (currently) be autoloaded.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll keep that in mind and will probably add something to our backlog for this. If you notice anything else, definitely let us know.

stobrien89 added a commit that referenced this pull request Aug 15, 2023
SamRemis added a commit to SamRemis/aws-sdk-php that referenced this pull request Nov 28, 2023
SamRemis pushed a commit to SamRemis/aws-sdk-php that referenced this pull request Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants